﻿namespace Dark_Core_Server.Models.Article
{
    /// <summary>
    /// 简单文章记录
    /// </summary>
    /// <param name="Title">标题</param>
    /// <param name="Content">内容</param>
    /// <param name="Synopsis">简介</param>
    /// <param name="ViewLevel">访问等级</param>
    /// <param name="Tags">标签</param>
    /// <param name="FileIds">文件IDS</param>
    public record SimpleArticleRecord(string Title,string Content,string Synopsis, string? PictureUrl = null,int? ViewLevel=0, string[]? Tags = null, string[]? FileIds = null);

    /// <summary>
    /// 修改文章记录
    /// </summary>
    /// <param name="Title">标题</param>
    /// <param name="Content">内容</param>
    /// <param name="Synopsis">简介</param
    /// <param name="ViewLevel">视图等级</param>
    /// <param name="Tags"></param>
    /// <param name="FileIds"></param>
    public record ModifyArticleRecord(string? Title = null, string? Content = null,string? Synopsis=null, string? PictureUrl = null, int? ViewLevel = 0,
        string[]? Tags = null, string[]? FileIds = null);

}
